/*
 * TimeoutHandler.h
 *
 *  Created on: Dec 13, 2014
 *      Authors: Avihay Avitan & Stefan Farcas
 */

#ifndef TIMEOUTHANDLER_H_
#define TIMEOUTHANDLER_H_
#include "Timer.h"

namespace TimerNameSpace {

/**
 * TimeoutHandler implements the TimerTimeoutHandler for handling the timeout of the pass process
 */
class TimeoutHandler : public TimerTimeoutHandler{
public:
	TimeoutHandler(boost::thread * mainThread ,boost::thread * trackerThread, bool * interruptedFlag);
	virtual ~TimeoutHandler();

    void handlerFunction( void );

private:
    boost::thread * mainThread;
    boost::thread * trackerThread;
    bool * interruptedFlag;
};

} /* namespace TimerNameSpace */

#endif /* TIMEOUTHANDLER_H_ */
